#include "Scene.h"


Scene::Scene(void)
{

}


Scene::~Scene(void)
{

}

void Scene::AddObject(DrawablePrimitive* object)
{
	this->primitives.push_back(object);
}

void Scene::Draw()
{
	
	for(std::vector<DrawablePrimitive*>::iterator it = this->primitives.begin(); it != this->primitives.end(); it++)
	{
		DrawablePrimitive* current = *(it);
		Vector3* currentPosition = current->GetPosition();
		Vector3* currentScale = current->GetScale();
		glPushMatrix();
			glTranslatef(currentPosition->x, currentPosition->y, currentPosition->z);
			glScalef(currentScale->x, currentScale->y, currentScale->z);
			current->Draw();
		glPopMatrix();
	}
}
